home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
0292.ZIP
/
MAILMEN.ARC
/
MAILED.PRG
< prev
next >
Wrap
Text File
|
1985-12-21
|
5KB
|
171 lines
* Converted to Dbase III by Bill Simpson 6/7/85 (713) 530-8500
*!!* dBASE CONVERT - dBASE III File Conversion Aid v1.0 6/14/84
*
SET HEADING OFF
SET SAFETY OFF
* MAILED.PRG - PROGRAM FOR EDITING MAILIST FILES
* COPYRIGHT NOVEMBER 14, 1983 BY PHILIP K. PERLMAN
SET TALK OFF
*POKE 1047,10
STORE .T. TO ED
DO WHILE ED
STORE .T. TO DULY
DO WHILE DULY
CLEAR
USE MAIL
? "YOU CAN LOCATE THE FILE BY THE INDIVIDUAL'S NAME OR COMPANY NAME"
?
?
?
*!! There will be no automatic colon following this prompt string.
ACCEPT "ENTER LAST NAME : " TO NAME
?
?
?
*!! There will be no automatic colon following this prompt string.
ACCEPT "ENTER FIRST NAME : " TO NAME1
?
?
?
*!! There will be no automatic colon following this prompt string.
ACCEPT "ENTER COMPANY NAME : " TO COMP
STORE UPPER(NAME) TO NAME
STORE UPPER(NAME1) TO NAME1
STORE UPPER(COMP) TO COMP
IF LEN(COMP)=0 .AND. LEN(NAME) <> 0
USE MAIL INDEX LAST
*!! EOF() will be true if NO FIND, and RECNO() will equal BOTTOM, not 0.
FIND &NAME
IF .NOT. (EOF())
* .OR. BOF())
STORE 1 TO REC
STORE .F. TO DULY
ELSE
STORE 0 TO REC
STORE .F. TO DULY
ENDIF
DO WHILE LAST = NAME .AND. NAME1 <> ' ' .AND. UPPER(FIRST) <> NAME1
SKIP
ENDDO
ELSE
IF LEN(NAME) = 0 .AND. LEN(COMP) <> 0
USE MAIL INDEX COMP
*!! EOF() will be true if NO FIND, and RECNO() will equal BOTTOM, not 0.
FIND &COMP
IF .NOT. (EOF() )
*.OR. BOF())
STORE 1 TO REC
STORE .F. TO DULY
ELSE
STORE 0 TO REC
STORE .F. TO DULY
ENDIF
ENDIF
ENDIF
ENDDO
IF REC = 0
CLEAR
STORE ' ' TO ANS3
@ 10,5 SAY "Record Cannot Be Found."
@ 12,5 say "Press 'N' to Return to the Menu"
@ 14,5 SAY "Press Any Other Key to Try Again."
@ 14,70 get ANS3
READ
CLEAR GETS
IF UPPER(ANS3) = 'N'
STORE .F. TO ED
STORE .F. TO DULY
RETURN
ELSE
STORE .T. TO DULY
STORE ' ' TO ANS
ENDIF
ENDIF
do while REC = 1
STORE ' ' TO ANS
CLEAR
@ 1,1 SAY 'Company' get company
@ 3,1 say 'Name'
@ 3,5 get LAST
@ 3,27 GET FIRST
@ 4,1 GET ADDR1
@ 4,40 SAY 'Office Tel.' GET TEL_WRK
@ 5,1 GET ADDR2
@ 5,40 SAY 'Home Tel.' GET TEL_HM
@ 6,1 GET CITY
@ 6,27 GET STATE
@ 6,31 GET ZIP
@ 8,1 SAY 'Birthday' GET BIRTHDAY
@ 8,20 SAY 'Friend' get friend
@ 8,30 say 'Business' get bus_xmas
@ 10,1 say 'Priority 1' get prof1
@ 11,1 say 'Priority 2' get prof2
@ 12,1 say 'Priority 3' get prof3
@ 14,1 say 'Comments'
@ 14,11 get mcom1
@ 15,11 get mcom2
?
? "+-------------------------------------------------------------------------+"
? "| SELECT: E> Edit this Record D> Delete this Record |"
? "| N> To Return to Menu R> Review other Records |"
? "+-------------------------------------------------------------------------+"
?
WAIT TO ANS
IF UPPER(ANS) <> 'E' .AND. UPPER(ANS) <> 'D' .AND. UPPER(ANS) <> 'N' .AND. UPPER(ANS) <> 'R'
CLEAR
LOOP
ELSE
IF UPPER(ANS) = 'E'
? "PRESS CONTROL W '^W' OR THE ENTER KEY TO REACH THE BOTTOM OF PAGE AND "
? "COMPLETE EDITING"
READ
STORE 0 TO REC
ELSE
IF UPPER(ANS) = 'D'
CLEAR
? "ARE YOU SURE ABOUT THAT (Y OR N) ?"
?
?
?
?
WAIT TO SURE
IF UPPER(SURE) = 'Y'
DELETE
PACK
STORE 0 TO REC
ELSE
STORE 0 TO REC
ENDIF
ELSE
IF UPPER(ANS) = 'N'
STORE 0 TO REC
STORE .F. TO ED
CLEAR
RETURN
ELSE
IF UPPER(ANS) = 'R'
STORE 0 TO REC
ENDIF
ENDIF
ENDIF
ENDIF
ENDDO
CLEAR
IF UPPER(ANS) = 'D' .OR. UPPER(ANS) = 'E'
store ' ' to ans1
@ 10,5 SAY "Press 'N' to Return to The Menu"
@ 12,5 Say "Press Any Other Key To Continue Editing"
@ 12,60 get ans1
read
clear gets
if UPPER(ans1) = 'N'
store .f. to ed
CLEAR
return
else
CLEAR
ENDIF
endif
ENDDO